@echo off
setlocal enabledelayedexpansion

set DestPath=%~dp0\
set PdfPath=%~dp0\
set DestExt=*.svg

for /f "delims=" %%i in ('dir /b/a-d/oN  %DestPath%\%DestExt%')  do (
set origin_file=%DestPath%%%i
set target_fle=%PdfPath%%%~ni.png
echo Start transform from !origin_file! to !target_fle!
inkscape -D -z --file=!origin_file! --export-png=!target_fle! --export-area-drawing --export-dpi=300
)
pause